<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>帮助中心 - 奢享时光</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
  <style>
    :root {
      --primary-gradient: linear-gradient(135deg, #7F00FF, #E100FF);
      --secondary-gradient: linear-gradient(135deg, #00F5A0, #00D9F5);
      --primary-color: #7F00FF;
      --secondary-color: #00F5A0;
      --accent-color: #FFE600;
      --dark-bg: #2D1B69;
      --light-bg: #6B3FA0;
      --text-light: #FFFFFF;
      --text-secondary: #E0D5FF;
      --card-bg: rgba(255, 255, 255, 0.1);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      --border-radius: 16px;
      --border: 1px solid rgba(255, 255, 255, 0.18);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: 'Noto Sans SC', 'Poppins', sans-serif;
      background: var(--dark-bg);
      color: var(--text-light);
      font-size: 14px;
      line-height: 1.5;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      outline: none;
    }

    .app-container {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      background: linear-gradient(180deg, var(--dark-bg), var(--light-bg));
      position: relative;
      overflow: hidden;
      padding-bottom: 70px;
    }

    /* 背景装饰 */
    .bg-decoration {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-circle {
      position: absolute;
      border-radius: 50%;
    }

    .bg-circle:nth-child(1) {
      width: 300px;
      height: 300px;
      top: -150px;
      right: -100px;
      background: radial-gradient(circle, rgba(225, 0, 255, 0.2), rgba(225, 0, 255, 0));
    }

    .bg-circle:nth-child(2) {
      width: 250px;
      height: 250px;
      bottom: 10%;
      left: -100px;
      background: radial-gradient(circle, rgba(0, 245, 160, 0.15), rgba(0, 245, 160, 0));
    }

    /* 顶部导航 */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: rgba(45, 27, 105, 0.8);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: var(--border);
    }

    .back-button {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .page-title {
      font-size: 18px;
      font-weight: 600;
    }

    .header-actions {
      display: flex;
      gap: 15px;
    }

    .header-actions i {
      font-size: 18px;
      color: var(--text-light);
      opacity: 0.9;
    }

    /* 内容区域 */
    .content {
      position: relative;
      z-index: 1;
      padding: 20px;
    }

    /* 搜索框 */
    .search-box {
      position: relative;
      margin-bottom: 25px;
    }

    .search-input {
      width: 100%;
      padding: 15px 50px 15px 20px;
      background: rgba(255, 255, 255, 0.1);
      border: var(--border);
      border-radius: 100px;
      color: var(--text-light);
      font-size: 14px;
      transition: all 0.3s ease;
    }

    .search-input:focus {
      background: rgba(255, 255, 255, 0.15);
      outline: none;
    }

    .search-input::placeholder {
      color: var(--text-secondary);
    }

    .search-icon {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-secondary);
      font-size: 16px;
    }

    /* 分类导航 */
    .category-nav {
      display: flex;
      gap: 10px;
      margin-bottom: 25px;
      overflow-x: auto;
      padding-bottom: 10px;
      scrollbar-width: none; /* Firefox */
    }

    .category-nav::-webkit-scrollbar {
      display: none; /* Chrome, Safari, Edge */
    }

    .category-item {
      padding: 10px 20px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 100px;
      font-size: 14px;
      color: var(--text-secondary);
      white-space: nowrap;
      transition: all 0.3s ease;
    }

    .category-item.active {
      background: var(--primary-gradient);
      color: var(--text-light);
    }

    /* 常见问题 */
    .faq-card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      margin-bottom: 15px;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .faq-question {
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .faq-question:active {
      background: rgba(255, 255, 255, 0.05);
    }

    .question-text {
      font-size: 15px;
      font-weight: 500;
    }

    .faq-toggle {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      transition: all 0.3s ease;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .faq-answer-content {
      padding: 0 20px;
      color: var(--text-secondary);
      font-size: 14px;
      line-height: 1.6;
    }

    .faq-card.active .faq-toggle {
      transform: rotate(180deg);
      background: var(--accent-color);
      color: var(--dark-bg);
    }

    .faq-card.active .faq-answer {
      max-height: 500px;
      padding-bottom: 20px;
    }

    /* 热门主题 */
    .help-section {
      margin-bottom: 30px;
    }

    .section-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-title i {
      color: var(--accent-color);
    }

    .topic-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }

    .topic-card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      transition: transform 0.3s ease, background 0.3s ease;
    }

    .topic-card:active {
      transform: scale(0.98);
      background: rgba(255, 255, 255, 0.15);
    }

    .topic-icon {
      width: 60px;
      height: 60px;
      border-radius: 15px;
      background: var(--primary-gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      margin-bottom: 15px;
    }

    .topic-name {
      font-size: 15px;
      font-weight: 500;
      margin-bottom: 5px;
    }

    .topic-desc {
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* 联系客服 */
    .contact-card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      box-shadow: var(--shadow);
    }

    .contact-icon {
      width: 60px;
      height: 60px;
      border-radius: 15px;
      background: var(--secondary-gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      margin-right: 15px;
      flex-shrink: 0;
    }

    .contact-details {
      flex: 1;
    }

    .contact-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 5px;
    }

    .contact-desc {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 10px;
    }

    .contact-time {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .contact-btn {
      padding: 10px 20px;
      background: var(--primary-gradient);
      border-radius: 100px;
      font-size: 14px;
      font-weight: 500;
      margin-left: 15px;
      transition: all 0.3s ease;
    }

    .contact-btn:active {
      transform: scale(0.95);
    }

    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-width: 480px;
      margin: 0 auto;
      background: rgba(45, 27, 105, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: var(--border);
      display: flex;
      justify-content: space-around;
      padding: 12px 0;
      z-index: 100;
    }

    .nav-button {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      color: var(--text-secondary);
      font-size: 12px;
      padding: 5px 0;
      flex: 1;
      transition: all 0.3s ease;
    }

    .nav-button i {
      font-size: 18px;
      margin-bottom: 2px;
    }

    .nav-button.active {
      color: var(--accent-color);
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 背景装饰 -->
    <div class="bg-decoration">
      <div class="bg-circle"></div>
      <div class="bg-circle"></div>
    </div>

    <!-- 顶部导航 -->
    <header class="header">
      <a href="profile.html" class="back-button">
        <i class="fas fa-arrow-left"></i>
      </a>
      <div class="page-title">帮助中心</div>
      <div class="header-actions">
        <!-- 占位 -->
      </div>
    </header>

    <!-- 主要内容 -->
    <main class="content">
      <!-- 搜索框 -->
      <div class="search-box">
        <input type="text" class="search-input" placeholder="搜索问题或关键词">
        <i class="fas fa-search search-icon"></i>
      </div>

      <!-- 分类导航 -->
      <div class="category-nav">
        <div class="category-item active">全部</div>
        <div class="category-item">账号相关</div>
        <div class="category-item">订单物流</div>
        <div class="category-item">拼团攻略</div>
        <div class="category-item">股权分红</div>
        <div class="category-item">售后服务</div>
      </div>

      <!-- 热门问题 -->
      <div class="help-section">
        <div class="section-title">
          <i class="fas fa-fire"></i>
          <span>热门问题</span>
        </div>

        <!-- 常见问题列表 -->
        <div class="faq-list">
          <div class="faq-card active">
            <div class="faq-question">
              <div class="question-text">什么是拼团抢购？如何参与？</div>
              <div class="faq-toggle">
                <i class="fas fa-chevron-down"></i>
              </div>
            </div>
            <div class="faq-answer">
              <div class="faq-answer-content">
                拼团抢购是一种团购活动，当您看到心仪的商品时，可点击"参与拼团"，邀请好友一起购买可享受更低价格。参与步骤：<br>
                1. 选择心仪商品<br>
                2. 点击"参与拼团"<br>
                3. 邀请好友或加入已有团<br>
                4. 达到人数要求后，系统自动发货<br>
                如团购失败，款项将在24小时内原路退回。
              </div>
            </div>
          </div>

          <div class="faq-card">
            <div class="faq-question">
              <div class="question-text">如何查看我的订单状态？</div>
              <div class="faq-toggle">
                <i class="fas fa-chevron-down"></i>
              </div>
            </div>
            <div class="faq-answer">
              <div class="faq-answer-content">
                您可以在"我的"-"我的订单"中查看所有订单的状态。订单状态包括：待付款、待发货、待收货、待评价和已完成。每个订单都有详细的物流信息，点击订单可查看更多详情。
              </div>
            </div>
          </div>

          <div class="faq-card">
            <div class="faq-question">
              <div class="question-text">股权分红如何计算？</div>
              <div class="faq-toggle">
                <i class="fas fa-chevron-down"></i>
              </div>
            </div>
            <div class="faq-answer">
              <div class="faq-answer-content">
                股权分红根据您持有的股权数量和平台总收益按比例计算。分红周期为每月一次，系统会在每月初（1-5日）将上月分红收益打入您的账户余额。您可以在"股权"页面查看详细的分红记录和收益明细。
              </div>
            </div>
          </div>

          <div class="faq-card">
            <div class="faq-question">
              <div class="question-text">如何申请退款或售后服务？</div>
              <div class="faq-toggle">
                <i class="fas fa-chevron-down"></i>
              </div>
            </div>
            <div class="faq-answer">
              <div class="faq-answer-content">
                在订单详情页面，您可以点击"申请售后"按钮发起退款或售后服务。根据商品收货状态，可选择"仅退款"或"退货退款"。提交申请后，客服会在24小时内审核并给予回复。售后政策请参考各商品详情页的售后说明。
              </div>
            </div>
          </div>

          <div class="faq-card">
            <div class="faq-question">
              <div class="question-text">如何邀请好友加入平台？</div>
              <div class="faq-toggle">
                <i class="fas fa-chevron-down"></i>
              </div>
            </div>
            <div class="faq-answer">
              <div class="faq-answer-content">
                在"我的"-"邀请好友"页面，您可以获取专属邀请码和邀请链接。将链接分享给好友，好友成功注册并完成首单后，您将获得相应奖励。邀请的好友越多，团队等级越高，享受的权益也会越多。
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- 热门主题 -->
      <div class="help-section">
        <div class="section-title">
          <i class="fas fa-book"></i>
          <span>热门主题</span>
        </div>
        <div class="topic-grid">
          <a href="javascript:void(0)" class="topic-card">
            <div class="topic-icon">
              <i class="fas fa-shopping-bag"></i>
            </div>
            <div class="topic-name">新手指南</div>
            <div class="topic-desc">平台使用入门教程</div>
          </a>
          <a href="javascript:void(0)" class="topic-card">
            <div class="topic-icon">
              <i class="fas fa-users"></i>
            </div>
            <div class="topic-name">拼团攻略</div>
            <div class="topic-desc">拼团规则与技巧</div>
          </a>
          <a href="javascript:void(0)" class="topic-card">
            <div class="topic-icon">
              <i class="fas fa-chart-line"></i>
            </div>
            <div class="topic-name">股权指南</div>
            <div class="topic-desc">股权获取与分红</div>
          </a>
          <a href="javascript:void(0)" class="topic-card">
            <div class="topic-icon">
              <i class="fas fa-undo"></i>
            </div>
            <div class="topic-name">退款流程</div>
            <div class="topic-desc">退款政策与操作</div>
          </a>
        </div>
      </div>

      <!-- 联系客服 -->
      <div class="help-section">
        <div class="section-title">
          <i class="fas fa-headset"></i>
          <span>联系客服</span>
        </div>
        <div class="contact-card">
          <div class="contact-icon">
            <i class="fas fa-headset"></i>
          </div>
          <div class="contact-details">
            <div class="contact-title">在线客服</div>
            <div class="contact-desc">解决账号、订单等问题</div>
            <div class="contact-time">工作时间：9:00-21:00</div>
          </div>
          <button class="contact-btn">
            咨询
          </button>
        </div>
        <div class="contact-card">
          <div class="contact-icon">
            <i class="fas fa-phone-alt"></i>
          </div>
          <div class="contact-details">
            <div class="contact-title">电话客服</div>
            <div class="contact-desc">人工专线：400-123-4567</div>
            <div class="contact-time">工作时间：9:00-18:00</div>
          </div>
          <button class="contact-btn">
            拨打
          </button>
        </div>
      </div>
    </main>

    <!-- 底部导航 -->
    <nav class="bottom-nav">
      <a href="index.html" class="nav-button">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </a>
      <a href="groupbuy.html" class="nav-button">
        <i class="fas fa-users"></i>
        <span>拼团</span>
      </a>
      <a href="shares.html" class="nav-button">
        <i class="fas fa-chart-line"></i>
        <span>股权</span>
      </a>
      <a href="profile.html" class="nav-button active">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </a>
    </nav>
  </div>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // FAQ 切换效果
      const faqCards = document.querySelectorAll('.faq-card');
      
      faqCards.forEach(card => {
        const question = card.querySelector('.faq-question');
        
        question.addEventListener('click', function() {
          // 如果当前卡片已经是激活状态，则关闭它
          if (card.classList.contains('active')) {
            card.classList.remove('active');
            return;
          }
          
          // 关闭所有其他激活的卡片
          faqCards.forEach(c => {
            c.classList.remove('active');
          });
          
          // 激活当前卡片
          card.classList.add('active');
        });
      });
      
      // 分类导航选择
      const categoryItems = document.querySelectorAll('.category-item');
      
      categoryItems.forEach(item => {
        item.addEventListener('click', function() {
          categoryItems.forEach(i => {
            i.classList.remove('active');
          });
          
          this.classList.add('active');
          
          // 这里可以根据分类筛选内容
          const category = this.textContent;
          console.log(`已选择分类：${category}`);
          
          // 模拟切换分类的效果
          if (category !== '全部') {
            alert(`${category}相关内容加载中，敬请期待！`);
          }
        });
      });
      
      // 搜索功能
      const searchInput = document.querySelector('.search-input');
      
      searchInput.addEventListener('keypress', function(e) {
        if (e.key === 'Enter') {
          const searchTerm = this.value.trim();
          if (searchTerm) {
            alert(`正在搜索：${searchTerm}`);
            // 这里可以实现实际的搜索功能
          }
        }
      });
      
      // 热门主题点击
      const topicCards = document.querySelectorAll('.topic-card');
      
      topicCards.forEach(card => {
        card.addEventListener('click', function() {
          const topicName = this.querySelector('.topic-name').textContent;
          alert(`${topicName}内容正在准备中，敬请期待！`);
        });
      });
      
      // 联系客服按钮
      const contactBtns = document.querySelectorAll('.contact-btn');
      
      contactBtns.forEach((btn, index) => {
        btn.addEventListener('click', function() {
          if (index === 0) {
            alert('正在连接在线客服，请稍候...');
          } else {
            alert('正在拨打客服电话：400-123-4567');
          }
        });
      });
      
      // 页面加载动画
      const helpSections = document.querySelectorAll('.help-section');
      const faqList = document.querySelector('.faq-list');
      
      helpSections.forEach((section, index) => {
        section.style.opacity = '0';
        section.style.transform = 'translateY(20px)';
        section.style.transition = `opacity 0.5s ease, transform 0.5s ease`;
        
        setTimeout(() => {
          section.style.opacity = '1';
          section.style.transform = 'translateY(0)';
        }, 100 + (index * 150));
      });
      
      if (faqList) {
        const faqItems = faqList.querySelectorAll('.faq-card');
        
        faqItems.forEach((item, index) => {
          item.style.opacity = '0';
          item.style.transform = 'translateY(20px)';
          item.style.transition = `opacity 0.3s ease, transform 0.3s ease`;
          
          setTimeout(() => {
            item.style.opacity = '1';
            item.style.transform = 'translateY(0)';
          }, 200 + (index * 100));
        });
      }
    });
  </script>
</body>
</html> 